package com.woniuxy.login.client;




import com.woniuxy.common.CommonResult;
import com.woniuxy.login.client.dto.PlUser;
import com.woniuxy.login.client.dto.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Date: 2021/6/30:11:36  <br/>
 * Description:
 */
@FeignClient(name = "personal-service")
public interface PersonServiceFeignClient {

    @GetMapping("/user/selectUser/{username}")
    CommonResult<PlUser> selectUser(@PathVariable("username") String username);

    @PostMapping("/user/insertUser")
    CommonResult insertUser(@RequestBody UserDto userDto);
}
